import request from '@/utils/request'

// 查询分组列表
export function menuGroupList(query) {
  return request({
    url: 'account/groupp/list',
    method: 'get',
    params: query
  })
}

// 分组详情
export function getMenuGroupDetail(groupId) {
  return request({
    url: `account/groupp/${groupId}`,
    method: 'get'
  })
}

// 新增分组
export function addMenuGroup(data) {
  return request({
    url: `account/groupp`,
    method: 'post',
    data
  })
}
// 编辑分组
export function editMenuGroup(data) {
  return request({
    url: `/account/groupp`,
    method: 'put',
    data
  })
}
// 删除分组
export function delMenuGroup(tenantIds) {
  return request({
    url: `/account/groupp/${tenantIds}`,
    method: 'DELETE'
  })
}
// 修改状态 /account/groupp/updateStatus
export function updateStatus(data) {
  return request({
    url: `/account/groupp/updateStatus`,
    method: 'post',
    data
  })
}

// 编辑菜单分组的详细信息
export function updateJieShao(data) {
  return request({
    url: `/account/groupp/updateJieShao`,
    method: 'post',
    data
  })
}


